<!-- file: app/views/fichiers/contact.ctp -->

<p><font size="6"><?php __('Contactez nous')?></font></p>
<br>
Email:<a href="mailto:fleuron@atilf.fr"> fleuron@atilf.fr</a>

<p>44,av. de la Liberation - Nancy - 54000</p>



<div id="map_canvas"></div><br> <br>
<b>Realisation:</b>

<br/> <a href="mailto:diegoalejandrofg@gmail.com">Diego Felipe </a>
<br/><a href="mailto:kevin.juarezpineda@gmail.com">Kevin Juarez</a>
<br/><a href="mailto:lipejavi@gmail.com">Felipe Viñoles</a>

<br/><a href="mailto:a.prs88@gmail.com">André Pires</a>  et
<a href="mailto:osvald.laurent@gmail.com">Laurent Osvald </a>


<script type="text/javascript">

 var geocoder;
  var map;
  var marker;
  var infowindow;
 function initialize() {
     geocoder = new google.maps.Geocoder();
    var latlng = new google.maps.LatLng(48.693012, 6.166565200000036-34.397, 150.644);
    var myOptions = {
      zoom: 13,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
     map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

     var contentString = '<div id="content">'+
        '<div id="siteNotice">'+
        '<p align="center"><a target="_blank" href="http://www.univ-nancy2.fr/CRAPEL/"> <img src="<?php echo Dispatcher::baseUrl(); ?>/img/Crapel.png" /></a></p></div>'+
        ''+
        '<div id="bodyContent">'+
        '<p align="center"><b>44,av. de la Liberation - Nancy - 54000</b></div></div>';

     infowindow = new google.maps.InfoWindow({
        content: contentString
    });

    
  }


$(document).ready(function(){
                    initialize();
                    codeAddress();
                    });

  function codeAddress() {
    var address ="44,av. de la Liberation - Nancy - 54000";
    geocoder.geocode( { 'address': address}, function(results, status) {
      if (status == google.maps.GeocoderStatus.OK) {
          //alert(results[0].geometry.location);
          latlng = new google.maps.LatLng(48.693012, 6.166565200000036);
        map.setCenter(results[0].geometry.location);
         marker = new google.maps.Marker({
            map: map,
            position: latlng
        });
        google.maps.event.addListener(marker, 'click', function() {
      infowindow.open(map,marker);
    });
      } else {
        alert("Geocode was not successful for the following reason: " + status);
      }
    });
  }


</script>
